import { ApiProperty } from '@nestjs/swagger';
import { MinLength, MIN_LENGTH } from 'class-validator';

export class CreateTestDto {
  @ApiProperty({
    description: '姓名',
  })
  @MinLength(5, { message: '姓名不能低于5个字符' })
  name: string;

  @MinLength(5, { message: '班级名称不能低于5个字符' })
  className: string;
}
